
 
 F u n c t i o n :   s k i p T o ( s k i p L i n k E l e m e n t O r C S S S e l e c t o r ,   t a r g e t E l e m e n t O r C S S S e l e c t o r ,   o b j e c t C o n f i g ,   f u n c t i o n O v e r r i d e ) 
 
 
 
 D e s c r i p t i o n :   S e t s   a   h a n d l e r   o n   a n   e l e m e n t   t o   m o v e   f o c u s   t o   t h e   s p e c i f i e d   t a r g e t   e l e m e n t   u s i n g   a   s m o o t h   s c r o l l   a n i m a t i o n   w h e n   c l i c k e d . 
 
 
 
 R e t u r n s :   d o m E l e m e n t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 R e q u i r e s   m o d u l e :   " S m o o t h S c r o l l " 
 
 
 
 N o t e :   T h e   o b j e c t C o n f i g   p a r a m e t e r   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   o p t i o n s   f o r   t h e   s k i p   l i n k   f u n c t i o n a l i t y .   T h e   f u n c t i o n O v e r r i d e   p a r a m e t e r   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   f o c u s   m o v e m e n t   s t a t e m e n t   t o   p e r f o r m   a   d i f f e r e n t   a c t i o n   i n s t e a d .   I f   a   f u n c t i o n O v e r r i d e   i s   s p e c i f i e d ,   a   s i m i l a r e   $ A . f o c u s ( t a r g e t )   s t a t e m e n t   m u s t   b e   i n c l u d e d   w i t h i n   t h e   a n i m a t i o n   c a l l b a c k   t o   e n s u r e   a c c e s s i b i l i t y   f o r   k e y b o a r d   u s e r s . 
 
 
 
 E x a m p l e : 
 
 
 
 $ A . i m p o r t ( " S m o o t h S c r o l l " ,   {   d e f e r :   t r u e   } ,   f u n c t i o n ( )   { 
 
 
 
     / /   S e t   a   s k i p   l i n k   t o   m o v e   t o   a   t a r g e t   e l e m e n t   w h e n   c l i c k e d . 
 
     $ A ( d o m E l e m e n t ) . s k i p T o ( d o m E l e m e n t T a r g e t ) ; 
 
 
 
     / /   O r   u s i n g   C S S   s e l e c t o r s 
 
     $ A ( " a . s k i p - l i n k - c l s " ) . s k i p T o ( " # t a r g e t - i d " ) ; 
 
 
 
     / /   S e t   a   s k i p   l i n k   a n d   c h a n g e   c o n f i g u r a t i o n   o p t i o n s . 
 
     / /   V i e w   t h e   S e t S k i p L i n k   h e l p   d o c   t o   s e e   a v a i l a b l e   c o n f i g u r a t i o n   o p t i o n s . 
 
 
 
     $ A ( " a . s k i p - l i n k - c l s " ) . s k i p T o ( d o m E l e m e n t T a r g e t ,   { 
 
         s k i p R e t u r n :   t r u e , 
 
         o v e r r i d e :   { 
 
             d u r a t i o n :   7 5 0 , 
 
             e a s i n g :   " e a s e - i n " 
 
         } 
 
     } ) ; 
 
 
 
 } ) ; 
 
 